import styled from 'styled-components'

export const ShareWrapper = styled.div`
  height: 100%;
  overflow: scroll;
  overflow-x: hidden;
  &::-webkit-scrollbar {
    display: none;
  }
  .article_item {
    margin-top: 30px;
    display: flex;
    padding: 15px;
    box-sizing: border-box;
    border-radius: 15px;
    background-color: var(--bgColorTop);

    .poster {
      width: 30%;
      height: 100%;
      flex-shrink: 0;
      img {
        width: 100%;
        height: 100%;
        border-radius: 10px;
      }
    }

    > .right {
      flex: 1;
      display: flex;
      flex-direction: column;
      margin-left: 10px;
      position: relative;

      .title {
        font-size: 18px;
        font-weight: 600;
        padding: 0;
        margin: 0;
        color: var(--fontColorTop);
      }

      .desc {
        font-size: 14px;
        color: var(--fontColorBase);
      }

      .footer {
        font-size: 12px;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        justify-content: space-between;
        color: var(--fontColorBottom);

        .options {
          display: flex;
          align-items: center;
          > .item {
            height: 20px;
            display: flex;
            align-items: center;
            margin-right: 30px;

            .icon {
              margin-right: 5px;
            }
          }
        }
      }
    }
  }

  .more {
    font-size: 14px;
    color: var(--fontColorBottom);
    margin-top: 20px;
    display: flex;
    justify-content: center;
    cursor: pointer;
  }
`

export const ArticleDetailWrapper = styled.div`
  width: 80%;
  z-index: 999;
  box-sizing: border-box;

  .article_detail {
    max-height: 90vh;
    border-radius: 15px 0 0 15px;
    overflow: scroll;
    overflow-x: hidden;
    background-color: var(--bgColorTop);

    h1 {
      font-size: 24px;
      font-weight: 700;
      padding: 20px;
      padding-bottom: 12px;
    }

    .detail_top {
      display: flex;
      padding: 0 20px;
      justify-content: space-between;

      .time {
        font-size: 14px;
        color: var(--fontColorBottom);
      }

      .msg {
        display: flex;
        font-size: 14px;
        color: var(--fontColorBottom);

        .msg_item {
          margin-right: 15px;
        }
      }
    }

    .desc {
      margin: 20px 0;
      padding: 50px 20px;
      display: flex;
      line-height: 1.5;
      align-items: center;
      justify-content: center;
      background-color: var(--bgColorBase);
    }

    .content {
      padding: 20px;
      padding-top: 0;

      .content_item {
        display: flex;
        flex-direction: column;
        align-items: center;
        .text {
          width: 60%;
          margin: 20px 0;
        }
        .image {
          width: 100%;
        }
      }
    }

    .likes_info {
      width: 100%;
      padding: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      /* background-color: red; */

      .like_wrapper {
        padding: 10px 20px;
        border: 1px solid var(--bgColorBottom);
        border-radius: 16px;

        .icon {
          font-size: 30px;
        }

        .active {
          color: var(--main-color);
        }
      }

      .likes_title {
        font-size: 20px;
        font-weight: 600;
        margin-top: 10px;
      }

      .likes_msg {
        display: flex;
        font-size: 14px;
        color: var(--fontColorBottom);

        .likes_msg_item {
          margin-right: 15px;
        }
      }

      .likes_msg .likes_msg_item:last-child {
        margin-right: 0;
      }
    }

    .comment_wrapper {
      padding: 20px;
      display: flex;
      box-sizing: border-box;
      background-color: var(--bgColorBase);
      .left {
        flex: 1;
        margin-right: 20px;
        .comment_header {
          width: 100%;
          display: flex;
          padding: 20px;
          box-sizing: border-box;
          align-items: flex-start;
          border-radius: 10px 10px 0 0;
          background-color: var(--bgColorTop);

          .header_right {
            width: 100%;
            margin-left: 10px;
            .textarea {
              width: 100%;
              height: 130px;
              outline: none;
              border: none;
              resize: none;
              color: var(--fontColorBottom);
              font-size: 14px;
              border-radius: 20px;
              padding: 20px;
              box-sizing: border-box;
              border: 1px solid var(--bgColorOther);
              background-color: var(--bgColorOther);
            }

            .textarea:focus {
              background-color: var(--bgColorTop);
              border: 1px solid var(--main-color);
            }

            .textarea::placeholder {
              font-size: 14px;
              color: var(--fontColorBottom);
            }

            .comment_input {
              display: flex;
              align-items: center;
              justify-content: space-between;
              .name {
                .name_input {
                  outline: none;
                  border: none;
                  font-size: 14px;
                  color: var(--fontColorBottom);
                  padding: 10px 10px;
                  border-radius: 10px;
                  border: 1px solid var(--bgColorOther);
                  background-color: var(--bgColorOther);
                }
                .name_input:focus {
                  background-color: var(--bgColorTop);
                  border: 1px solid var(--main-color);
                }
              }
              .btn {
              }
            }
          }
        }

        .comment_list {
          padding: 20px;
          box-sizing: border-box;
          border-radius: 0 0 20px 20px;
          background-color: var(--bgColorTop);

          .no_comment {
            font-size: 14px;
            color: var(--fontColorBottom);
            display: flex;
            justify-content: center;
          }

          .comment_item {
            font-size: 14px;
            margin-bottom: 20px;
            display: flex;

            .comment_content {
              margin-left: 20px;
              display: flex;
              flex-direction: column;

              .c_time {
                margin-left: 10px;
                color: var(--fontColorBottom);
              }
            }
          }

          .more_comment {
            font-size: 14px;
            color: var(--fontColorBottom);
            display: flex;
            justify-content: center;
            cursor: pointer;
          }
        }
      }

      .right_article {
        height: 500px;
        overflow-x: hidden;
        overflow-y: scroll;
        .right {
          width: 600px;
          display: flex;
          flex-direction: column;
          border-radius: 10px;
          background-color: var(--bgColorTop);
        }
      }
      .right_article::-webkit-scrollbar {
        display: none;
      }
    }
  }

  /* 设置滚动条的样式 */
  .article_detail::-webkit-scrollbar {
    width: 5px;
    height: 5px;
  }

  /* 设置滚动条轨道的样式 */
  .article_detail::-webkit-scrollbar-track {
    background: var(--bgColorTop);
  }

  /* 设置滚动条滑块的样式 */
  .article_detail::-webkit-scrollbar-thumb {
    background: var(--fontColorBottom);
  }

  /* 设置滚动条滑块悬停时的样式 */
  .article_detail::-webkit-scrollbar-thumb:hover {
    background: var(--fontColorBase);
  }
`
export const LiftRecordWrapper = styled.div`
  margin-top: 15px;
  display: flex;
  flex-direction: column;
  .lift_record_item {
    display: flex;
    margin-bottom: 15px;
    .left_time {
      margin-right: 20px;

      .time {
        font-size: 14px;
        color: var(--fontColorBottom, #9195a1);
        font-weight: 700;
        text-align: right;
        padding-top: 2px;
      }
      .day {
        font-size: 24px;
      }
    }
    .right_content {
      width: 560px;
      .title {
        font-size: 24px;
        padding-bottom: 8px;
      }
      .content {
        font-size: 14px;
        line-height: 2;
        color: var(--fontColorBase, #3b3948);
      }
    }

    .image {
      margin-left: 50px;

      img {
        width: 600px;
      }
    }
  }

  .lift_record_more_text {
    font-size: 14px;
    color: var(--fontColorBottom, #9195a1);
    text-align: center;
    cursor: pointer;
  }
`
